namespace Ayatta.Contract.Domain
{
    /// <summary>
    /// 订单类别
    /// </summary>
    public enum OrderCategory : byte
    {
        /// <summary>
        /// 网购订单
        /// </summary>
        Normal = 0,

        /// <summary>
        /// 竞购订单
        /// </summary>
        Auction = 1,

        /// <summary>
        /// 竞购补差订单
        /// </summary>
        AuctionVariant=2,

        /// <summary>
        /// 积分兑换订单
        /// </summary>
        IntegralExchange = 3

    }

    /// <summary>
    /// 物流方式
    /// </summary>
    public enum ShippingType : byte
    {
        /// <summary>
        /// 初始值
        /// </summary>
        None = 0,

        /// <summary>
        /// 虚拟发货 游戏充值 手机充值等
        /// </summary>
        Virtual = 1,

        /// <summary>
        /// 快递
        /// </summary>
        Express = 2,

        /// <summary>
        /// EMS
        /// </summary>
        Ems = 3,

        /// <summary>
        /// 平邮
        /// </summary>
        Post = 4,

        /// <summary>
        /// 自提
        /// </summary>
        SelfFetch = 5,

        /// <summary>
        /// 其它
        /// </summary>
        Other = 6
    }

    /// <summary>
    /// 支付方式
    /// </summary>
    public enum PaymentType : byte
    {
        /// <summary>
        /// 初始值
        /// </summary>
        None = 0,

        /// <summary>
        /// 积分支付
        /// </summary>
        Integral = 1,

        /// <summary>
        ///  竞购获得的拍品兑换为积分或免费拍币
        /// </summary>
        Exchange = 2,

        /// <summary>
        /// 线上支付(余额支付 网银支付)
        /// </summary>
        Online = 3
    }

    /// <summary>
    /// 订单状态
    /// </summary>
    public enum OrderStatus : byte
    {
        /// <summary>
        /// 待处理
        /// </summary>
        Pending = 0,
        /// <summary>
        /// 等待买家付款
        /// </summary>
        WaitBuyerPay = 1,
        /// <summary>
        /// 等待卖家发货,即:买家已付款
        /// </summary>
        WaitSellerSend = 2,
        /// <summary>
        /// 卖家部分发货
        /// </summary>
        SellerSendPart = 3,
        /// <summary>
        /// 等待买家确认收货,即:卖家已发货
        /// </summary>
        WaitBuyerConfirm = 4,
        /// <summary>
        /// 买家已签收,货到付款专用
        /// </summary>
        BuyerSigned = 5,
        /// <summary>
        /// 交易成功
        /// </summary>
        Finished = 6,
        /// <summary>
        /// 付款以前，卖家或买家主动关闭交易
        /// </summary>
        Canceled = 7,
        /// <summary>
        /// 付款以后用户退款成功，交易自动关闭
        /// </summary>
        Closed = 8,
        /// <summary>
        /// 删除
        /// </summary>
        Deleted = 9
    }

    /// <summary>
    /// 订单兑换
    /// </summary>
    public enum OrderExchange : byte
    {
        /// <summary>
        /// 无
        /// </summary>
        None = 0,

        /// <summary>
        /// 兑换为积分
        /// </summary>
        Integral = 1,

        /// <summary>
        /// 免费拍币
        /// </summary>
        FreeBidCurrency = 2
    }

    /// <summary>
    /// 支付状态
    /// </summary>
    public enum PaymentStatus : byte
    {
        /// <summary>
        /// 待支付
        /// </summary>
        Pending = 0,

        /// <summary>
        /// 已部分支付
        /// </summary>
        PartiallyPaid = 1,

        /// <summary>
        /// 经授权的
        /// </summary>
        //Authorized = 1,

        /// <summary>
        /// 已支付
        /// </summary>
        Paid = 2,
        /// <summary>
        /// 已部分退款
        /// </summary>
        PartiallyRefunded = 3,
        /// <summary>
        /// 已退款
        /// </summary>
        Refunded = 4,
        /// <summary>
        /// 系统废弃
        /// </summary>
        Voided = 5,
        /// <summary>
        /// 用户取消
        /// </summary>
        Canceled = 6,
        /// <summary>
        /// 已删除
        /// </summary>
        Deleted = 7
    }
}

